<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="./js/axios-0.20.0.js"></script>
  <script src="./js/qs-6.9.4.js"></script>
</head>

<body>
  <script>
    async function findAll(){
      try{
        let res =await axios({
        url:'http://121.199.0.35:8888/index/carousel/findAll'
      });
      console.log(res,'成功的响应');
      }catch(e){
        console.log(e,'捕获错误信息');
      }finally{
        console.log('最终执行');
      }
    }
    findAll()
    // axios({
    //   url: 'http://121.199.0.35:8888/index/carousel/findAll'
    // }).then(res => {
    //   console.log(res, '成功回调函数');
    // }).catch(err => {
    //   console.log(err, '失败回调函数');
    // }).finally(() => {
    //   console.log('最终执行');
    // })
  </script>
</body>

</html>